package no.uib.kwikktaim.gui.actionlisteners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import no.uib.kwikktaim.gui.MainWindow;
import no.uib.kwikktaim.utils.PlayerOptions;

public class TimeSliderChange implements ChangeListener {

	private MainWindow mw;

	public TimeSliderChange(MainWindow caller) {
		mw = caller;
	}


	@Override
	public void stateChanged(ChangeEvent arg0) {
		if(mw.getPlaypause() == PlayerOptions.PAUSE)
			mw.setTime(mw.sliderTime.getValue());
	}

}
